package handler;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * @program: hw
 * @description: qiuheyi
 * @author: qhy
 * @create: 2020-08-07 16:09
 **/
public class SimpleChatServerInitializer extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
        // 自定义处理类
        ch.pipeline().addLast(new NettyTcpServerHandler());
    }

}
